<div class="row">
	<ol class="breadcrumb pull-left">	
		<li>		
			<?php echo $this->Html->link(__('Volver a Servicios', true), array('controller' => 'services', 'action' => 'index' )); ?>		
		</li>
	</ol>
</div>
<?php
$option= array(
            'inputDefaults' => array(
                'div' => array(
                	'class' => 'form-group'
                ),
                'label' => array(
                	'class' => ' col-md-push'
                ),
                'between' => '<div class="col-lg-10 right">',
                'seperator' => '</div>',
                'after' => '</div>',
                'class' => 'form-control',
            ),
            'class' => 'form-horizontal form-stacked',
            'role' => 'form',
        );
?>
<div class="row">
  	<div class="page-header">
		  <h1>Nuevo Servicio</h1>
		</div>
  	<div class="col-sm-12 col-md-12  well">
		<?php echo $this->Session->flash(); ?>
	</div>

	<div class="col-sm-12 col-md-12 ">
		<div id="signup" class="lock-screen">
			
			<?php echo $this->Form->create('Services',$option); ?>
				<fieldset>
					<div class="col-sm-6">
						<?php echo $this->Form->input('category_id' ,array( 'class'=>'form-control chosen-select ', 'label' => array( 'text' => __('Categoría:'),
					'class' => 'col-lg-2 control-label'),'empty'=>'Categoria'))?>
					</div>
					<div class="col-sm-6">
						<?php echo $this->Form->input('zone_id' ,array( 'class'=>'form-control chosen-select ', 'label' => array( 'text' => __('Zona:'),
					'class' => 'col-lg-2 control-label'),'empty'=>'Zona'))?>
					</div>
					<div class="col-sm-12">					
					<?php echo $this->Form->input('name' ,array( 'label' => array( 'text' => __('Nombre:'),'class' => 'col-lg-1 control-label' )))?>
					</div>
					<div class="col-sm-12">					
					<?php echo $this->Form->input('service_code' ,array( 'label' => array( 'text' => __('Código:'),'class' => 'col-lg-1 control-label' )))?>
					</div>
					<div class="col-sm-6">
					<?php echo $this->Form->input('time',array('type'=>'select','options'=>$time_options , 'label' => array( 'text' => __('Duracion:'),'type'=>'time','class' => 'col-lg-2 control-label' )));?>
					</div>
					<div class="col-sm-6"> 
					<?php echo $this->Form->input('price',array( 'label' => array( 'text' => __('Precio:'),'class' => 'col-lg-2 control-label' )));?>
					
					
					</div>
					<div class="col-sm-6">
						<?php echo $this->Form->input('sessions',array( 'label' => array( 'text' => __('Nro de Sesiones:'),'class' => 'col-lg-2 control-label' )));?>
					</div>
					<!-- <input class="form-control" type="text" data-mask="99/99/9999" placeholder=""> -->									
					<div class="col-sm-6">
						<?php echo $this->Form->input('color_code',array( 'label' => array( 'text' => __('Color:'),'class' => 'col-lg-2 control-label' ),'value'=>'#CED8F6'));?>
					</div>
					<div class="form-group">

				    <div class="col-sm-offset-5 col-sm-10">				      
				      <?php echo $this->Html->link(__('Cancelar', true), array('controller' => 'clients', 'action' => 'index' ),array('class'=>'btn btn-primary')); ?> 	
				      <button type="submit" class="btn btn-default">Guardar</button>				      
				    </div>
				  </div>
				</fieldset>	

			<?php echo $this->Form->end(); ?>
			
		</div>																																																																						
	</div>
	<!-- login container End here -->
</div>

<script type="text/javascript">
$(function(){
	$("#ServicesColorCode").pickAColor();
	$(".chosen-select").chosen();
});
</script>

